<?php
if(!defined('IN_KKFRAME')) exit();
$nav = array('提醒' => 'notice.php');
include template('header');
?>

<div class="page-headers"><h1><?php echo $_GET['showall'] ? '所有提醒 (<a href="notice.php">只显示未读</a>)' : '未读提醒 (<a href="notice.php?showall=yes">显示所有</a>)'; ?></h1></div>

<div class="postlist">
<?php
if(!$notice_list){
	echo '<p class="nodata">你还没有'.($_GET['showall'] ? '收到' : '未读').'的提醒哦~</p>';
}else{
	foreach($notice_list as $notice){
		echo '<div class="post"><div class="contents clearfix"><p class="info">'.dgmdate($notice['time']).'</span></p>'.$notice['content'].'</div></div>';
	}
}
?>
</div>

<?php
include template('footer');